package com.api.gbhg.liuwenbo.test;

import org.junit.Test;

import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;

public class a3_16 {


    @Test
    public void test(){

    }
    public static void main(String[] args) {
        List<String> list1 = new ArrayList<>();
        List<String> list2 = new ArrayList<>();
        Properties props = new Properties();
        try {
            InputStream resourceAsStream1 = a3_16.class.getResourceAsStream("test.properties");
            props.load(resourceAsStream1);
            System.out.println(props.getProperty("a"));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }catch (IOException e) {
        e.printStackTrace();
    }

        list1.add("1");
        list1.add("2");
        list1.add("3");
        list2.add("3");
        list2.add("4");
        list2.add("5");
        list2.addAll(list1);
        for (String str: list2) {
            System.out.println(str);
        }
    }
}
